/**
 * 
 */
package org.xlab.familystore.domain;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;

/**
 * @author makubex
 * 
 */
public class PurchaseOrderItem implements Serializable {

	/**
	 * @serialField
	 */
	private static final long serialVersionUID = -4229911281344517490L;

	@DatabaseField(generatedId = true)
	private int id;
	@DatabaseField
	private int planedQty;
	@DatabaseField(defaultValue = "0")
	private int actualQty;
	@DatabaseField(foreign = true)
	private PurchaseOrder po;
	@DatabaseField(foreign = true)
	private Commodity commodity;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getPlanedQty() {
		return planedQty;
	}
	public void setPlanedQty(int planedQty) {
		this.planedQty = planedQty;
	}
	public int getActualQty() {
		return actualQty;
	}
	public void setActualQty(int actualQty) {
		this.actualQty = actualQty;
	}
	public PurchaseOrder getPo() {
		return po;
	}
	public void setPo(PurchaseOrder po) {
		this.po = po;
	}
	public Commodity getCommodity() {
		return commodity;
	}
	public void setCommodity(Commodity commodity) {
		this.commodity = commodity;
	}

	
}
